package org.example.entity;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import java.time.LocalDateTime;

@Data
public class    User {
    @ExcelProperty(value = "主键ID", index = 0)
    private Long id;

    @ExcelProperty(value = "用户名", index = 1)
    @ColumnWidth(20)
    private String username;

    @ExcelProperty(value = "年龄", index = 2)
    @ColumnWidth(10)
    private Integer age;

    @ExcelProperty(value = "邮箱", index = 3)
    @ColumnWidth(30)
    private String email;

    @ExcelProperty(value = "手机号码", index = 4)
    @ColumnWidth(15)
    private String phonenumber;

    @ExcelProperty(value = "性别（0男 1女 2未知）", index = 5)
    @ColumnWidth(15)
    private String sex;

    @ExcelProperty(value = "头像地址", index = 6)
    @ColumnWidth(30)
    private String avatar;

    @ExcelProperty(value = "密码", index = 7)
    @ColumnWidth(20)
    private String password;

    @ExcelProperty(value = "账号状态（0正常 1停用）", index = 8)
    @ColumnWidth(15)
    private String status;

    @ExcelProperty(value = "删除标志（0存在 2删除）", index = 9)
    @ColumnWidth(15)
    private String delFlag;

    @ExcelProperty(value = "最后登录IP", index = 10)
    @ColumnWidth(20)
    private String loginIp;

    @ExcelProperty(value = "最后登录时间", index = 11)
    @ColumnWidth(20)
    private LocalDateTime loginDate;

    @ExcelProperty(value = "创建者", index = 12)
    @ColumnWidth(15)
    private String createBy;

    @ExcelProperty(value = "创建时间", index = 13)
    @ColumnWidth(20)
    private LocalDateTime createTime;

    @ExcelProperty(value = "更新者", index = 14)
    @ColumnWidth(15)
    private String updateBy;

    @ExcelProperty(value = "更新时间", index = 15)
    @ColumnWidth(20)
    private LocalDateTime updateTime;

    @ExcelProperty(value = "备注", index = 16)
    @ColumnWidth(30)
    private String remark;
}